$(function(){
    var option = {
        url: '/search/log/list',
        pagination: true,	//显示分页条
        sidePagination: 'server',//服务器端分页
        showRefresh: true,  //显示刷新按钮
        search: true,
        //toolbar: '#toolbar',
        striped : true,     //设置为true会有隔行变色效果
        //idField: 'menuId',
        columns: [
            {checkbox:true},
            /**
             *
             receiveTime: 1609314998297,
             apiName: "jingdong.product.delete",
             remoteIp: "201.23.23.2",
             createTime: "2020-12-29 14:34:34",
             venderId: 4,
             platformRepTime: 237,
             appKey: "abdusdhu",
             requestContent: "<font color="red">海尔</font>冰箱",
             servIP: "101.21.89.13"
             */
            { title: '请求时间', field: 'receiveTime',sortable:true},
            { title: 'api名称', field: 'apiName'},
            { title: '网关ip', field: 'remoteIp'},
            { title: '日志产生时间', field: 'createTime'},
            { title: '调用api时长', field: 'platformRepTime'},
            { title: '请求内容', field: 'requestContent'}
        ]};

    $('#table').bootstrapTable(option);
});

var vm = new Vue({
    el:'#dtapp',
    data:{
        appKeys:[]
    },
    methods: {}
});